<?php


namespace app\api\controller\v1;


use app\adminapi\controller\AuthController;
use app\services\office\OfficeStudentService;
use think\facade\App;

class UserController extends AuthController
{

    public function __construct(App $app,OfficeStudentService  $service)
    {
        parent::__construct($app);
        $this ->services = $service;
    }

    /*
     * 获取用户基本信息
     */

    public function index(){

        $where = $this->request->postMore([
            ['idcard', ''],
            ['website_id',$this  -> website],
        ]);

        return app()->make('json')->successful($this->services->getUserInformation($where));
    }




}